﻿namespace dogd
{
	using System;

	/// <summary>
	/// DescriptionAttribute provides reflection data for enums and properties.
	/// </summary>
	[AttributeUsage(AttributeTargets.All)]
	public sealed class DescriptionAttribute : System.Attribute
	{
		/// <summary>
		/// Initialize with descriptive text
		/// </summary>
		/// <param name="text"></param>
		public DescriptionAttribute(string text)
		{
			this.Text = text;
		}

		/// <summary>
		/// Gets or Sets descriptive text
		/// </summary>
		public string Text
		{
			get;
			private set;
		}
	}
}
